package com.hqyj;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.JavaMailSenderImpl;

@SpringBootApplication
@MapperScan("com.hqyj.*.dao")
@MapperScan("com.hqyj.*.mapper")
public class SushesystemApplication {

    //修改代码
    public static void main(String[] args) {
        SpringApplication.run(SushesystemApplication.class, args);
    }

    @Bean
    public JavaMailSender createSender(){
        return new JavaMailSenderImpl();
    }

}
